import { defineStore } from "pinia";

export const useShopStore = defineStore("shop", {
  state() {
    return {
      EditName: "",
      EditShow: false,
      cat_id: 1,
      addShow: false,
      addName: "",
    };
  },
  actions: {
    setEditName(payload) {
      this.EditName = payload;
    },
    setEditShow(payload) {
      this.EditShow = payload;
    },
    setCatId(payload) {
      this.cat_id = payload;
    },
    setAddShow(payload) {
      this.addShow = payload;
    },
    setAddName(payload) {
      this.addName = payload;
    },
  },
});
